<template>
    <div class="content-box">
        <div class="content_header">
            {{title}}
        </div>
        <div class="content_box">
            <slot></slot>
        </div>
    </div>

</template>
<script>

    export  default {
        name:"Content",
        props:{
            title:{
                type:String,
                default:"传入title属性"
            }
        }
    }


</script>

<style lang="scss" scoped>
    @import "../../assets/style/config.scss";
    .content-box{
        height: 100%;
        width: 100%;
        background: url("../../assets/image/kuangsmall.png") no-repeat;
        background-size: 100% 100%;
        display: flex;
        flex-direction: column;

    }

    .content_box{
        flex: 1;
    }
</style>
